#include "MetaClasse.h"

#include "Guerrier.h"

#include "debugstreams.h"

#include <boost/assign/list_of.hpp>

using namespace std;
using namespace boost::assign;

int main(int argc, char* argv[])
{
  if ( argc < 2 )
    {
      cerr << "usage : testMetaClasse.exe Classe" << endl;
      return 1;
    }

  vector< unsigned int > traits =
    list_of( 14 )( 13 )( 11 )( 16 )( 13 )( 10 )( 0 );

  MetaClasse test( argv[1] );

  StatusCode sc( test.lireFichier() );

  if ( ! sc )
    {
      error() << sc.message() << endreq;
      return 1;
    }

  unsigned int pp( test.getPP() );

  test.setTraits( traits );

  //test.construitClasse( pp );

  Classe *cl = test.creerObjet();

  blank() << endl << endreq;

  cl -> construitClasse( pp );

  cl -> augmenterXP( 2510 );

  cl -> afficherStats();

  cl -> affiche();
 
  delete cl;

  return 0;
}

